<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<!-- 1.引入外部的vue.js -->
		<script src="./js/vue@3.3.4.global.js"></script>
	</head>
	<body>
		<!-- 2.创建视图 -->
		<div id="app">
			用户名：<input type="text" name="name" v-model="username" />
			<br>
			<p>{{username}}</p>
		</div>
		
	</body>
	<script>
		//3.创建Vue的实例
		const app = Vue.createApp({
			data(){
				return {
					username: ''
				}
			}
		})
		//4.挂载
		app.mount('#app')
	</script>
</html>